﻿@model IEnumerable<SanQiOther.Models.v_bgs_car_dept_main>
@{
    Layout = null;
}
<table id="roleList2" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.id)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DeptMc)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CarMc)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.year)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.month)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.lc)
            </th>
            <th>
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.id)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DeptMc)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CarMc)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.year)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.month)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.lc)
                </td>
                <td>
                    @Html.ActionLink("修改", "Detail", new { id = item.id })
                </td>
            </tr>
        }
    </tbody>
</table>